.class public Lcom/waiqin365/lightwork/tracker/model/l;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/waiqin365/lightwork/tracker/model/o;

.field private c:Landroid/view/LayoutInflater;

.field private d:Landroid/database/DataSetObserver;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/m;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/model/m;-><init>(Lcom/waiqin365/lightwork/tracker/model/l;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->d:Landroid/database/DataSetObserver;

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/model/l;->a:Landroid/content/Context;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/o;->a()Lcom/waiqin365/lightwork/tracker/model/o;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/l;->d:Landroid/database/DataSetObserver;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/o;->a(Landroid/database/DataSetObserver;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->a:Landroid/content/Context;

    const-string/jumbo v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->c:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/o;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/o;->e()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/o;->d()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/model/o;->a(I)Lcom/waiqin365/lightwork/tracker/model/s;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->b:Lcom/waiqin365/lightwork/tracker/model/o;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/model/o;->a(I)Lcom/waiqin365/lightwork/tracker/model/s;

    move-result-object v2

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/l;->c:Landroid/view/LayoutInflater;

    const v1, 0x7f030266

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightwork/tracker/model/n;

    invoke-direct {v1, p0, v3}, Lcom/waiqin365/lightwork/tracker/model/n;-><init>(Lcom/waiqin365/lightwork/tracker/model/l;Lcom/waiqin365/lightwork/tracker/model/m;)V

    const v0, 0x7f0c0bac

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/model/n;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0bad

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/model/n;->b:Landroid/widget/TextView;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v0, v1

    :goto_0
    iget-object v1, v0, Lcom/waiqin365/lightwork/tracker/model/n;->a:Landroid/widget/TextView;

    iget-object v3, v2, Lcom/waiqin365/lightwork/tracker/model/s;->b:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/n;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, v2, Lcom/waiqin365/lightwork/tracker/model/s;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/l;->a:Landroid/content/Context;

    const v3, 0x7f0803ce

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/n;

    goto :goto_0
.end method
